package week6;

public class Student {
    String name;
    int age;
    String school;
    String major;

    public Student(String name,int age){
        this.name = name;
        this.age = age;
    }
    public Student(String name,int age,String school){
        this.name = name;
        this.age = age;
        this.school = school;
    }
    public Student(String name,int age,String school,String major){
        this.name = name;
        this.age = age;
        this.school = school;
        this.major = major;
    }
    public void show(){
        System.out.println("姓名:"+name+"年龄:"+age+"学校:"+school+"年级:"+major);
    }

    public static void main(String[] args) {
        Student student1 = new Student("威龙",24);
        student1.show();
        Student student2 = new Student("红狼",25,"黄埔军校");
        student2.show();
        Student student3 = new Student("露娜",20,"黄埔军校","大三");
        student3.show();

    }
}
